<?php
namespace app\service;

use app\model\ShortcutModel;
use const support\CORRECT;

class ShortcutService
{

    //获取快捷按钮列表
    public static function lists(): array
    {
        return ShortcutModel::where('status',CORRECT)
            ->orderBy('sort','desc')->select([
                'shortcut_title','shortcut_icon','shortcut_type','shortcut_value'
            ])->get()->toArray();
    }

}